//
//  Common.swift
//  itcastWeibo
//
//  Created by 谢臣 on 2019/10/22.
//  Copyright © 2019 itcast. All rights reserved.
//

//import UIKit
//
//@available(iOS 11.0, *)
//var bottomSafeAreaHeight = UIApplication.shared.windows.first?.safeAreaInsets.bottom ?? 0.0
//
//
//    var statusBarHeight: Int = Int(UIApplication.shared.statusBarFrame.height);
//
//    //导航栏高度
//    var navigationHeight = (statusBarHeight + 44)
//
//    //tabbar高度
//    var tabBarHeight = (statusBarHeight == 44 ? 83 : 49)
//
//    //顶部的安全距离
//    var  topSafeAreaHeight = (statusBarHeight - 20)
//
//    //底部的安全距离
//    let bottomSafeAreaHeight = tabBarHeight - 49
//
//
//
//
//
//////适配iPhoneX
////获取底部的安全距离，全面屏手机为34pt，非全面屏手机为0pt
////底部的安全距离
//@available(iOS 11.0, *)
//var bottomSafeAreaHeight : Float = Float(UIApplication.shared.windows.first?.safeAreaInsets.bottom ?? 0.0)
//
////顶部的安全距离
//@available(iOS 11.0, *)
//let topSafeAreaHeight = (bottomSafeAreaHeight == 0 ? 0 : 24)
//
////状态栏高度
//let statusBarHeight = UIApplication.shared.statusBarFrame.height;
//
////导航栏高度
//@available(iOS 11.0, *)
//let navigationHeight = (bottomSafeAreaHeight == 0 ? 64 :88)
//
////tabbar 高度
//var tabBarHeight = (bottomSafeAreaHeight + 49)
